<?php

class pages {

   private $rs = null;


    public function  __construct($id) {
        $db = new DBhandler();
        $rs = $db->getData($sql);
    }
    /**
     * Creates a new pages and make it accessable for publishing and editing :)
     * @param String $name Menu name of the new page
     * @param int $category the headline category
     */
    function addNewPage($name, $category){
        
    }
    function deletePage($id){
        
    }
    function showHeadLine(){

    }
    function showPage(){
        $side = $this->$rs['side'];
        if(strlen($side)<1){
            echo "String Length < 1";
        }
        else {
            echo $side;
        }
     }
    function getAuthor($id){

    }

}
?>
